@isTest(seeAllData=true)
private class ValidateLeadOnUploadTriggerTest {
     static testMethod void ValidateLeadOnUploadTest() {
    // here we test the new lead insert
    Campus__c cmps = new Campus__c(Name = 'Unit Test', Active__c = True);
    cmps.recordTypeId = Schema.sObjectType.Campus__c.getRecordTypeInfosByName().get('West - Campus').getRecordTypeId();
    insert cmps;
    
    Program__c prgm = new Program__c(Name = 'Unit Test', Active__c = True);
    prgm.recordTypeId = Schema.sObjectType.Program__c.getRecordTypeInfosByName().get('West - Program').getRecordTypeId();
    insert prgm;
    
    Catalog__c ctlg = new Catalog__c(Catalog_Name__c = 'Unit Test', 
                                        Active__c = True, Campus__c = cmps.Id, Program__c = prgm.Id);    
    ctlg.recordTypeId = Schema.sObjectType.Catalog__c.getRecordTypeInfosByName().get('West').getRecordTypeId();
    insert ctlg;
    
    
    //List<RecordType> rtypes = [Select Id From RecordType where sObjectType='Lead' and isActive=true and DeveloperName='West - Prospective Student' Limit 1];
    Lead l=new Lead();
    l.email='john@john.com';
    l.firstname='John';
    l.HasOptedOutOfEmail=false;
    l.lastname='Coppedge';
    l.RecordTypeId= Schema.Sobjecttype.Lead.getRecordTypeInfosByName().get('West - Prospective Student').getRecordTypeId();
    l.Personal_Email__c='john@john.com';
    l.status='Contacted';
    l.phone='(801) 555-5556';
    DateTime birthDate= DateTime.now(); //DateTime variable
    String birthDate_Formatted_Date = birthDate.format('yyyy-MM-dd');
    l.Birth_Date__c=date.valueof(birthDate_Formatted_Date);
    l.Work_Phone__c='(801) 555-5556';
    //l.Mode_Text__c='Full Time';
    l.Campus_Text__c='Unit Test';
    l.Program_Text__c = 'Unit Test';
    //l.Country_of_Birth_Text__c = 'Mexico';
    //l.Country_of_Residence_Text__c = 'Mexico';
    l.Country = 'United States';
    l.campus__c = cmps.id;
    l.program__C = prgm.id;
    insert l;

    }      
}